import hyRequest from '@/service/request'

// 歌曲信息
export function getCurrentSongInfo(ids: number) {
  return hyRequest({
    method: 'get',
    url: '/song/detail',
    params: {
      ids
    }
  })
}

// 歌词信息
export function getSongLyricInfo(id: number) {
  return hyRequest({
    method: 'get',
    url: '/lyric',
    params: {
      id
    }
  })
}

// 歌单列表
export function getSheetList(id: number) {
  return hyRequest({
    method: 'get',
    url: '/playlist/detail',
    params: {
      id
    }
  })
}

// 获取专辑音乐信息
export function getAlbumList(id: number) {
  return hyRequest({
    method: 'get',
    url: '/album',
    params: { id }
  })
}

// 歌曲播放地址
export function getSongUrl(ids: string) {
  return hyRequest({
    method: 'get',
    url: '/song/url',
    params: {
      id: ids
    }
  })
}
